package com.example.animationmodule.livestartnumber;

import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.android.baselibrary.base.BaseActivity;
import com.example.animationmodule.AnimationPath;
import com.example.animationmodule.R;
import com.example.animationmodule.databinding.ActivityLiveStartCountMainBinding;
@Route(path = AnimationPath.LiveStartView)
public class LiveStartCountMainActivity extends BaseActivity<ActivityLiveStartCountMainBinding> {
    @Override
    public int getLayoutId() {
        return R.layout.activity_live_start_count_main;
    }

    @Override
    public void initView() {
      mBinding.btnStart.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              mBinding.tvCount.setTime(4);
              mBinding.tvCount.start();
          }
      });
        mBinding.btnStop.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mBinding.tvCount.stopAnimal();

            }
        });
    }

    @Override
    public void initListener() {

    }
}